package webdev.dto;

import java.util.ArrayList;

import android.os.Parcel;
import android.os.Parcelable;

public class CommentDTO implements Parcelable {

	private int idComment;
	private String userName;
	private String namePlace;
	private String content;

	public static final Parcelable.Creator<CommentDTO> CREATOR = new Creator<CommentDTO>() {
		
		@Override
		public CommentDTO[] newArray(int size) {
			return new CommentDTO[size];
		}
		
		@Override
		public CommentDTO createFromParcel(Parcel in) {
			return new CommentDTO(in);
		}
	};

	public CommentDTO() {
	}

	public CommentDTO(Parcel in) {
		idComment = in.readInt();
		userName = in.readString();
		namePlace = in.readString();
		content = in.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int arg1) {
		dest.writeInt(getIdComment());
		dest.writeString(getUserName());
		dest.writeString(getNamePlace());
		dest.writeString(getContent());
	}

	public int getIdComment() {
		return idComment;
	}

	public void setIdComment(int idComment) {
		this.idComment = idComment;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String idUser) {
		this.userName = idUser;
	}

	public String getNamePlace() {
		return namePlace;
	}

	public void setNamePlace(String idPlace) {
		this.namePlace = idPlace;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}
